<!DOCTYPE html>
<html>
    <head>
        <title>barrage test</title>
    </head>  
    <body style='position:relative'>
        <script src="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
        <script src="/barrage.js"></script>
        <script>
            var barrage_data = new Array();
            var barrage_data2 = new Array();
            barrage_data = [
                {content:'233333',time: 1,shown: false},
                {content:'哈哈哈哈哈哈哈哈哈哈哈哈',time: 1,shown: false},
                {content:'哈哈哈哈',time: 2,shown: false},
                {content:'23333333333333',time: 3,shown: false},
                {content:'搞笑啦',time: 4,shown: false},
                {content:'233333333333333333',time: 5,shown: false},
                {content:'233333',time: 7,shown: false},
                {content:'2333333',time: 8,shown: false},
                {content:'23333333',time: 9,shown: false},
                {content:'233333333',time: 10,shown: false},
                {content:'2333333333',time: 11,shown: false},
                {content:'23333333333',time: 12,shown: false},
                {content:'233333333333',time: 13,shown: false},

            ];
            barrage_data2 = [
                {content:'哈哈哈哈哈哈哈哈哈哈哈',time: 1,shown: false},
                {content:'哈哈哈哈哈哈哈哈哈哈哈哈',time: 1,shown: false},
                {content:'哈哈哈哈',time: 2,shown: false},
                {content:'23333333333333',time: 3,shown: false},
                {content:'搞笑啦搞笑啦搞笑啦搞笑啦',time: 4,shown: false},
                {content:'2333asdf33333333333333',time: 5,shown: false},
                {content:'23331111133',time: 7,shown: false},
                {content:'233323333333',time: 8,shown: false},
                {content:'2333aasddf3333',time: 9,shown: false},
                {content:'2333asdfa33333',time: 10,shown: false},
                {content:'2333cxzvz333333',time: 11,shown: false},
                {content:'2333qqqq3333333',time: 12,shown: false},
                {content:'2333adf33333333',time: 13,shown: false},

            ];
            set_timer();
            video_init($('body'),'http://static.lolfun.cn/20161001_57ef66ad66d39.mp4',barrage_data);
            video_init($('body'),'http://static.lolfun.cn/20160903_57ca9c8a8e4d8.mp4',barrage_data2);
        </script>
    </body>
</html>